type selectType = Array<{ label: string; value: string }>;

const languages = [
  "xml",
  "html",
  "css",
  "less",
  "scss",
  "yaml",
  "json",
  "javascript",
  "typescript",
  "markdown",
  "cpp",
  "dart",
  "go",
  "java",
  "kotlin",
  "lua",
  "mysql",
  "objective",
  "php",
  "redis",
  "ruby",
  "rust",
  "shell",
  "swift"
];

const languageList: selectType = languages.map(e => {
  return { label: e, value: e };
});

const themeList: selectType = [
  { label: "vs", value: "vs" },
  { label: "vs-dark", value: "vs-dark" },
  { label: "hc-black", value: "hc-black" },
  { label: "hc-light", value: "hc-light" }
];

export { languageList, themeList };
